import { PureComponent } from 'react'
import { Input, Select, Button, DatePicker} from 'antd'
import SingleTable from 'components/table/index'
import styles from './salesRecord.less'
const { Option } = Select
const { RangePicker } = DatePicker
export default class SalesRecord extends PureComponent {
    render(){
        const columns = [
            {
                key: 'gmtCreate',
                title: '流水号',
                dataIndex: 'gmtCreate',
                align: 'center',
            },
            {
                key: 'operationTypeName',
                title: '转运单号',
                dataIndex: 'operationTypeName',
                align: 'center',
            },
            {
                key: 'creatorName',
                title: '目的港',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
                key: '4',
                title: '销账类型',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
              key: '5',
              title: '支付方式',
              dataIndex: 'creatorName',
              align: 'center',
            },
            {
              key: '6',
              title: '金额',
              dataIndex: 'creatorName',
              align: 'center',
            },
            {
                key: '7',
                title: '货币',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
                key: '8',
                title: '汇率',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
                key: '9',
                title: '应收金额',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
                key: '10',
                title: '操作人',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
                key: '11',
                title: '汇款时间',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
                key: '12',
                title: '操作日期(核销日期)',
                dataIndex: 'creatorName',
                align: 'center',
            },
          ]
          const dataList = []
        return(
            <div className={styles.salesRecord}>
                <div className={styles.salesRecordBox}>
                    <h2>销账记录</h2>
                </div>
                <div className={styles.salesRecordSearch}>
                    <div className={styles.salesRecordSin}>
                        <span className={styles.salesRecordSpan}>转运单号：</span>
                        <Input className={styles.salesRecordInput} />
                    </div>
                    <div className={styles.salesRecordSin} style={{marginLeft: '28px'}}>
                        <span className={styles.salesRecordSpan}>流水账号：</span>
                        <Input className={styles.salesRecordInput} />
                    </div>
                    <div className={styles.salesRecordSin} style={{marginLeft: '28px'}}>
                        <span className={styles.salesRecordSpan}>销账类型：</span>
                        <Select className={styles.salesRecordInput}>
                            <Option value="value">value</Option>
                        </Select>
                    </div>
                    <div className={styles.salesRecordSin} style={{marginLeft: '28px'}}>
                        <span className={styles.salesRecordSpan}>支付方式：</span>
                        <Select className={styles.salesRecordInput}>
                            <Option value="value">value</Option>
                        </Select>
                    </div>
                </div>
                <div className={styles.salesRecordSearch}>
                    <div className={styles.salesRecordSin}>
                        <span className={styles.salesRecordSpan}>汇款时间：</span>
                        <RangePicker style={{width: '240px'}} />
                    </div>
                    <div className={styles.salesRecordSin} style={{marginLeft: '48px'}}>
                        <span className={styles.salesRecordSpan} style={{width: '150px'}}>操作日期(核销日期)：</span>
                        <RangePicker style={{width: '240px'}} />
                    </div>
                </div>
                <Button type="primary" icon="search" style={{margin: '0 0 24px 24px'}}>查询</Button>
                <Button  icon="export" style={{marginLeft: '24px'}}>导出查询结果</Button>
                <div className={styles.salesRecordTable}>
                    <SingleTable
                        data={{ list: dataList }}
                        columns={columns}
                    />
                </div>
            </div>
        )
    }
}